import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import http from './utils/http'
Vue.config.productionTip = false;

import ElementUI, { Link } from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
//引入全部的element-ui组件

import axios from "axios";
// console.log(process.env.VUE_APP_BASE_URL);
// axios.defaults.baseURL=process.env.VUE_APP_BASE_URL//三种环境，开发环境（development）测试（test),生产（production）

Vue.prototype.$axios = axios;

// 移动端适配
import 'lib-flexible/flexible'; 



import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);
//全局引入vant


Vue.prototype.$http = http

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
